package com.api.demo.dto.business.company;

import com.api.demo.dto.business.ApiDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

/**
 * @description: 查询账户信息DTO
 * @author: yanming
 * @createDate: 2022/12/27 09:33
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class AccountInfoDTO extends ApiDTO {

    private static final long serialVersionUID = 6936307328266831497L;

    @ApiModelProperty(value = "社会信用代码", required = true)
    @NotBlank(message = "社会信用代码不能为空")
    private String creditCode;

    @ApiModelProperty(value = "服务商id")
    private Long taxId;

    @ApiModelProperty(value = "页码", required = true)
    @Min(value = 1, message = "页码不能小于1")
    private Integer pageNo;

    @ApiModelProperty(value = "数据大小", required = true)
    @Max(value = 10, message = "页面大小不能大于10")
    @Min(value = 1, message = "页面大小不能小于1")
    private Integer pageSize;

}